var argvArr = process.argv;
/**命令行参数，数组的第一个元素
 * 是nodejs可执行程序的安装目录
 */
console.log(argvArr[0]);
/**
 * 数组的第二个元素，当前程序所在路径
 */
console.log(argvArr[1]);

var myorder = argvArr[2];
if(myorder == "hello"){
    console.log("nice to meet you");
}else if(myorder == "test"){
    console.log("it is a test");
}